const constant = {
	avatar: 'vuex_avatar',
	name: 'vuex_name',
	roles: 'vuex_roles',
	permissions: 'vuex_permissions',
	userRoles: 'vuex_userRoles',
};

export const Role = {
	admin: 'admin', // admin最高权限
	warehouseStaff: 'warehouse_staff', // 仓储人员 显示
	inspector: 'inspector', // 质检人员 显示审核按钮
	fabricInspector1: 'fabric_inspector1', //克重门幅
	fabricInspector2: 'fabric_inspector2', //读色
	fabricBottleInspector: 'bottle_inspector' //吊瓶检验
};

// 绣花类型
export const EmbroideryTypeEnum = [
	{ text: '裁片', value: '0' },
	{ text: '绣片', value: '1' },
];

// 裁剪铺布
export const LayingFabricTypeEnum = [
	{ text: '待审', value: '0', color: 'wraning' },
	{ text: '确认', value: '1', color: 'success' },
	{ text: '拒绝', value: '2', color: 'error' },
];

// 绣花收回-审核状态
export const AuditStatusEnum = [
	{ text: '待检', value: '0', color: 'wraning' },
	{ text: '合格', value: '1', color: 'success' },
	{ text: '不合格', value: '2', color: 'error' },
	{ text: '复检', value: '3', color: 'primary' },
	{ text: '复检合格', value: '4', color: 'success' },
	{ text: '报废', value: '5', color: 'gary' },
	{ text: '退库', value: '6', color: 'gary' },
	{ text: '入库', value: '7' },
];

// 绣花申请-审核状态
export const ApplyAuditStatusEnum = [
	{ text: '已审', value: true, color: 'success' },
	{ text: '待审', value: false, color: 'error' },
];

export const BottleTypeEnum = [
	{ text: '版样吊瓶', value: '0' },
	{ text: '来料吊瓶', value: '1' },
];

export default constant;
